/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.memento.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.DesignPatterns.behavioral.memento.DietInfo;
import za.ac.cput.DesignPatterns.behavioral.memento.DietInfoCaretaker;

/**
 *
 * @author Nashief
 */ 
@Configurable
public class MementoConf {
  
 @Bean 
 public DietInfoCaretaker dietInfoCaretaker(){
 return new DietInfoCaretaker();
 } 
 @Bean 
 public DietInfo dietInfo(){
 return new DietInfo("Fred", 1, 100);
 } 
 
 
    
}
